package com.demo.article;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.demo.goodsinfo.GoodsInfoServiceImpl;

@Controller
@RequestMapping("/article/")
public class ArticleController {
	
	@Autowired
	GoodsInfoServiceImpl goodsInfoServiceImpl;
	
	@RequestMapping(value="search")
	@ResponseBody
	public List<Map<String, Object>> searchArticle(){
		List<Map<String, Object>> list = goodsInfoServiceImpl.getAllDatas();
		return list;
	}

}
